package com.ruoyi.project.system.physical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.physical.mapper.StudentPhysicalMapper;
import com.ruoyi.project.system.physical.domain.StudentPhysical;
import com.ruoyi.project.system.physical.service.IStudentPhysicalService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 体测管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-05
 */
@Service
public class StudentPhysicalServiceImpl implements IStudentPhysicalService 
{
    @Autowired
    private StudentPhysicalMapper studentPhysicalMapper;

    /**
     * 查询体测管理
     * 
     * @param iid 体测管理主键
     * @return 体测管理
     */
    @Override
    public StudentPhysical selectStudentPhysicalByIid(Long iid)
    {
        return studentPhysicalMapper.selectStudentPhysicalByIid(iid);
    }

    /**
     * 查询体测管理列表
     * 
     * @param studentPhysical 体测管理
     * @return 体测管理
     */
    @Override
    public List<StudentPhysical> selectStudentPhysicalList(StudentPhysical studentPhysical)
    {
        return studentPhysicalMapper.selectStudentPhysicalList(studentPhysical);
    }

    /**
     * 新增体测管理
     * 
     * @param studentPhysical 体测管理
     * @return 结果
     */
    @Override
    public int insertStudentPhysical(StudentPhysical studentPhysical)
    {
        return studentPhysicalMapper.insertStudentPhysical(studentPhysical);
    }

    /**
     * 修改体测管理
     * 
     * @param studentPhysical 体测管理
     * @return 结果
     */
    @Override
    public int updateStudentPhysical(StudentPhysical studentPhysical)
    {
        return studentPhysicalMapper.updateStudentPhysical(studentPhysical);
    }

    /**
     * 批量删除体测管理
     * 
     * @param iids 需要删除的体测管理主键
     * @return 结果
     */
    @Override
    public int deleteStudentPhysicalByIids(String iids)
    {
        return studentPhysicalMapper.deleteStudentPhysicalByIids(Convert.toStrArray(iids));
    }

    /**
     * 删除体测管理信息
     * 
     * @param iid 体测管理主键
     * @return 结果
     */
    @Override
    public int deleteStudentPhysicalByIid(Long iid)
    {
        return studentPhysicalMapper.deleteStudentPhysicalByIid(iid);
    }
}
